/* 猫和老鼠主题变量 */
:root {
    --tom-color: #e74c3c;  /* 汤姆猫的红色 */
    --jerry-color: #f39c12; /* 杰瑞鼠的橙色 */
    --cheese-color: #f1c40f; /* 奶酪黄色 */
    --bg-color: #f9f3e6;    /* 背景米色 */
}

/* 基础样式 */
.tomjerry-theme {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: 3px dashed var(--tom-color);
    position: relative;
    overflow: hidden;
}

.tomjerry-theme::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/616/616408.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    transform: rotate(30deg);
}

/* 标题样式 */
.tomjerry-theme h1 {
    color: var(--tom-color);
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    position: relative;
}

.tomjerry-theme h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 20px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/3085/3085400.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 50px;
    top: -15px;
    transform: rotate(-20deg);
}

/* 表单元素样式 */
.tomjerry-theme fieldset {
    border: 2px solid var(--jerry-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fffdf7;
}

.tomjerry-theme legend {
    padding: 0 10px;
    color: var(--jerry-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* 选项样式 */
.tomjerry-theme .choice {
    padding: 10px;
    margin: 10px 0;
    background-color: #fef9e7;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 4px solid var(--cheese-color);
}

.tomjerry-theme .choice:hover {
    background-color: #fcf3d9;
    transform: translateX(5px);
}

.tomjerry-theme input[type="radio"] {
    accent-color: var(--jerry-color);
    margin-right: 10px;
    transform: scale(1.2);
}

/* 按钮样式 */
.tomjerry-theme .vote-button {
    background-color: var(--tom-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #c0392b;
}

.tomjerry-theme .vote-button:hover {
    background-color: #c0392b;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #922b21;
}

.tomjerry-theme .back-link {
    background-color: var(--jerry-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    margin-left: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #d35400;
}

.tomjerry-theme .back-link:hover {
    background-color: #e67e22;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #d35400;
}

/* 错误消息样式 */
.tomjerry-theme .error-message {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
}

/* 页脚样式 */
.tomjerry-footer {
    background-color: var(--tom-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

.tomjerry-footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tomjerry-footer .footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.tomjerry-footer .footer-links a:hover {
    color: var(--cheese-color);
    text-decoration: underline;
}

/* 背景样式 */
body.tomjerry-body {
    background-color: var(--bg-color);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    position: relative;
}

body.tomjerry-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://img.freepik.com/free-vector/hand-drawn-cat-paw-print-pattern_23-2149430436.jpg');
    background-size: 200px;
    opacity: 0.1;
    z-index: -1;
}




/* 投票列表页特定样式 */
.tomjerry-theme .question-list {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.tomjerry-theme .question-list li {
    margin-bottom: 15px;
    background-color: #fef9e7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.tomjerry-theme .question-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tomjerry-theme .question-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.tomjerry-theme .question-link:hover {
    background-color: #fcf3d9;
}

.tomjerry-theme .question-text {
    flex-grow: 1;
    font-size: 1.1em;
}

.tomjerry-theme .paw-icon {
    color: var(--tom-color);
    font-size: 1.5em;
    margin-left: 15px;
    transition: all 0.3s;
}

.tomjerry-theme .question-link:hover .paw-icon {
    transform: scale(1.2) rotate(10deg);
}

.tomjerry-theme .no-questions {
    text-align: center;
    padding: 30px;
    background-color: #fef9e7;
    border-radius: 8px;
    color: var(--jerry-color);
    font-size: 1.2em;
    border-left: 4px solid var(--cheese-color);
}



/* 投票结果页特定样式 */
.tomjerry-theme .results-container {
    background-color: #fffdf7;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid var(--jerry-color);
}

.tomjerry-theme .total-votes-display {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 25px;
    color: var(--tom-color);
    padding: 10px;
    background-color: #fef9e7;
    border-radius: 8px;
    border-bottom: 3px dotted var(--cheese-color);
}

.tomjerry-theme .total-number {
    font-weight: bold;
    color: var(--jerry-color);
    font-size: 1.5em;
}

.tomjerry-theme .paw-icon {
    margin: 0 10px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.tomjerry-theme .results-list {
    list-style-type: none;
    padding: 0;
}

.tomjerry-theme .results-list li {
    margin-bottom: 25px;
}

.tomjerry-theme .choice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.tomjerry-theme .choice-text {
    font-weight: bold;
    color: var(--tom-color);
}

.tomjerry-theme .choice-votes {
    color: var(--jerry-color);
}

.tomjerry-theme .vote-bar-container {
    height: 30px;
    background-color: #f3f3f3;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.tomjerry-theme .vote-bar {
    height: 100%;
    border-radius: 15px;
    transition: width 1s ease-in-out;
    position: relative;
}

.tomjerry-theme .vote-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        to right,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0) 100%
    );
}

.tomjerry-theme .cheese-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0.7;
}

.tomjerry-theme .action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

/* 投票结果页按钮样式 */
.tomjerry-theme .action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.tomjerry-theme .action-buttons a {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.tomjerry-theme .action-buttons a.vote-button {
    background-color: var(--tom-color);
    color: white;
    border: 2px solid #c0392b;
}

.tomjerry-theme .action-buttons a.back-link {
    background-color: var(--jerry-color);
    color: white;
    border: 2px solid #d35400;
}

.tomjerry-theme .action-buttons a:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.tomjerry-theme .action-buttons a.vote-button:hover {
    background-color: #c0392b;
}

.tomjerry-theme .action-buttons a.back-link:hover {
    background-color: #e67e22;
}

/* 猫和老鼠主题变量 */
:root {
    --tom-color: #e74c3c;  /* 汤姆猫的红色 */
    --jerry-color: #f39c12; /* 杰瑞鼠的橙色 */
    --cheese-color: #f1c40f; /* 奶酪黄色 */
    --bg-color: #f9f3e6;    /* 背景米色 */
}

/* 基础样式 */
.tomjerry-body {
    background-color: var(--bg-color);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 20px;
}

.tomjerry-theme {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: 3px dashed var(--tom-color);
    position: relative;
    overflow: hidden;
}

.tomjerry-theme::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/616/616408.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    transform: rotate(30deg);
}

/* 标题样式 */
.tomjerry-theme h1 {
    color: var(--tom-color);
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    position: relative;
}

.tomjerry-theme h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 20px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/3085/3085400.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 50px;
    top: -15px;
    transform: rotate(-20deg);
}

/* 结果容器样式 */
.tomjerry-theme .results-container {
    background-color: #fffdf7;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid var(--jerry-color);
}

/* 总票数显示 */
.tomjerry-theme .total-votes-display {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 25px;
    color: var(--tom-color);
    padding: 10px;
    background-color: #fef9e7;
    border-radius: 8px;
    border-bottom: 3px dotted var(--cheese-color);
}

.tomjerry-theme .total-number {
    font-weight: bold;
    color: var(--jerry-color);
    font-size: 1.5em;
}

.tomjerry-theme .paw-icon {
    margin: 0 10px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* 结果列表样式 */
.tomjerry-theme .results-list {
    list-style-type: none;
    padding: 0;
}

.tomjerry-theme .results-list li {
    margin-bottom: 25px;
}

.tomjerry-theme .choice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.tomjerry-theme .choice-text {
    font-weight: bold;
    color: var(--tom-color);
}

.tomjerry-theme .choice-votes {
    color: var(--jerry-color);
}

/* 投票进度条样式 */
.tomjerry-theme .vote-bar-container {
    height: 30px;
    background-color: #f3f3f3;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.tomjerry-theme .vote-bar {
    height: 100%;
    border-radius: 15px;
    transition: width 0.5s ease;
    position: relative;
}

.tomjerry-theme .vote-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        to right,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0) 100%
    );
}

.tomjerry-theme .cheese-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0.7;
}

/* 按钮样式 */
.tomjerry-theme .action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.tomjerry-theme .vote-button {
    background-color: var(--tom-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #c0392b;
    text-decoration: none;
}

.tomjerry-theme .back-link {
    background-color: var(--jerry-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #d35400;
}

.tomjerry-theme .vote-button:hover,
.tomjerry-theme .back-link:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.tomjerry-theme .vote-button:hover {
    background-color: #c0392b;
}

.tomjerry-theme .back-link:hover {
    background-color: #e67e22;
}

/* 页脚样式 */
.tomjerry-footer {
    background-color: var(--tom-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

.tomjerry-footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tomjerry-footer .footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.tomjerry-footer .footer-links a:hover {
    color: var(--cheese-color);
    text-decoration: underline;
}